package com.guigu.community.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.guigu.community.pojo.Products;
import com.guigu.community.pojo.Suppliers;
import com.guigu.community.vo.QuoteVo;
import com.guigu.community.vo.SuppliersVo;

import java.util.List;

public interface SuppliersService extends IService<Suppliers> {
    PageInfo<Suppliers> queryVo(Integer pageNo, Integer pageSize, SuppliersVo vo);
    PageInfo<Suppliers> queryByVo(Integer pageNo, Integer pageSize, SuppliersVo vo);
    Byte getSupplierStatusById(Integer supplierId);
    // 通过审核
    boolean approveSupplier(Integer supplierId);
    // 拒绝审核
    boolean rejectSupplier(Integer supplierId);
    // 新增方法：审核通过并更新 users 表的 Is_vendor
    boolean approveSupplierAndUpdateUser(Integer supplierId);
    // 提供报价
    boolean provideQuote(QuoteVo quoteVo);
}